package art_of_java_concurrent_programming.lock.shared;

import java.util.concurrent.Semaphore;

/**
 * @author lixiangke
 * @date 2018/1/28
 */
public class Zoom {
    Semaphore semaphore = new Semaphore(1);

    public void visit() throws InterruptedException {
        semaphore.acquire();
        System.out.println("Visited");
        semaphore.release();
    }
}
